/******************************************************************************
 *
 * Project:		mGameEngine
 * File:		mix.frag
 * Author:		karooolek
 * Created on:	2009-12-10
 *
 ******************************************************************************/

STRINGIZE(

uniform sampler2D texture;
uniform sampler2D texture2;
uniform float a;

void main()
{
	// get first texture
	vec4 tex = texture2D(texture, vec2(gl_TexCoord[0]));
	
	// get second texture
	vec4 tex2 = texture2D(texture2, vec2(gl_TexCoord[0]));
	
	// mix color
	gl_FragColor = mix(tex, tex2, a);
}

) // STRINGIZE
